package org.hxyjs.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Costtype implements Serializable {
    private String cono;

    private String rno;

    private String coname;

    private String cosize;

    private Date cobegintime;

    private Date coendtime;

    private Date cobegindate;

    private Date coenddate;

    private String codesc;

    private static final long serialVersionUID = 1L;

    public String getCono() {
        return cono;
    }

    public void setCono(String cono) {
        this.cono = cono;
    }

    public String getRno() {
        return rno;
    }

    public void setRno(String rno) {
        this.rno = rno;
    }

    public String getConame() {
        return coname;
    }

    public void setConame(String coname) {
        this.coname = coname;
    }

    public String getCosize() {
        return cosize;
    }

    public void setCosize(String cosize) {
        this.cosize = cosize;
    }

    public Date getCobegintime() {
        return cobegintime;
    }

    public void setCobegintime(Date cobegintime) {
        this.cobegintime = cobegintime;
    }

    public Date getCoendtime() {
        return coendtime;
    }

    public void setCoendtime(Date coendtime) {
        this.coendtime = coendtime;
    }

    public Date getCobegindate() {
        return cobegindate;
    }

    public void setCobegindate(Date cobegindate) {
        this.cobegindate = cobegindate;
    }

    public Date getCoenddate() {
        return coenddate;
    }

    public void setCoenddate(Date coenddate) {
        this.coenddate = coenddate;
    }

    public String getCodesc() {
        return codesc;
    }

    public void setCodesc(String codesc) {
        this.codesc = codesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Costtype other = (Costtype) that;
        return (this.getCono() == null ? other.getCono() == null : this.getCono().equals(other.getCono()))
            && (this.getRno() == null ? other.getRno() == null : this.getRno().equals(other.getRno()))
            && (this.getConame() == null ? other.getConame() == null : this.getConame().equals(other.getConame()))
            && (this.getCosize() == null ? other.getCosize() == null : this.getCosize().equals(other.getCosize()))
            && (this.getCobegintime() == null ? other.getCobegintime() == null : this.getCobegintime().equals(other.getCobegintime()))
            && (this.getCoendtime() == null ? other.getCoendtime() == null : this.getCoendtime().equals(other.getCoendtime()))
            && (this.getCobegindate() == null ? other.getCobegindate() == null : this.getCobegindate().equals(other.getCobegindate()))
            && (this.getCoenddate() == null ? other.getCoenddate() == null : this.getCoenddate().equals(other.getCoenddate()))
            && (this.getCodesc() == null ? other.getCodesc() == null : this.getCodesc().equals(other.getCodesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCono() == null) ? 0 : getCono().hashCode());
        result = prime * result + ((getRno() == null) ? 0 : getRno().hashCode());
        result = prime * result + ((getConame() == null) ? 0 : getConame().hashCode());
        result = prime * result + ((getCosize() == null) ? 0 : getCosize().hashCode());
        result = prime * result + ((getCobegintime() == null) ? 0 : getCobegintime().hashCode());
        result = prime * result + ((getCoendtime() == null) ? 0 : getCoendtime().hashCode());
        result = prime * result + ((getCobegindate() == null) ? 0 : getCobegindate().hashCode());
        result = prime * result + ((getCoenddate() == null) ? 0 : getCoenddate().hashCode());
        result = prime * result + ((getCodesc() == null) ? 0 : getCodesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cono=").append(cono);
        sb.append(", rno=").append(rno);
        sb.append(", coname=").append(coname);
        sb.append(", cosize=").append(cosize);
        sb.append(", cobegintime=").append(cobegintime);
        sb.append(", coendtime=").append(coendtime);
        sb.append(", cobegindate=").append(cobegindate);
        sb.append(", coenddate=").append(coenddate);
        sb.append(", codesc=").append(codesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}